import java.awt.*;
import java.lang.*;

public class Ch4TriMain{
	public static void main(String[] args){

		Ch4Triangle t  = new Ch4Triangle(new Point(0,0), new Point(1,1), new Point(2,2));
		Ch4ColoredTriangle ct = new Ch4ColoredTriangle(Color.red, new Point(0,0),new Point(1,1), new Point(2,2));
//		Ch4ColoredTriangle rct = new Ch4ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));

		System.out.println(t.equals(ct));
		System.out.println(ct.equals(t));

		Ch4ColoredTriangle redTriangle = new Ch4ColoredTriangle(Color.red, new Point(0,0), new Point(1,1), new Point(2,2));
		Ch4ColoredTriangle blueTriangle = new Ch4ColoredTriangle(Color.blue, new Point(0,0), new Point(1,1), new Point(2,2));

		System.out.println(redTriangle.equals(blueTriangle));
		System.out.println(blueTriangle.equals(redTriangle));
	}
}
